package com.cet.designpatterns.proxy.cglibproxy;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-15 14:45
 **/
public class Client {
    public static void main(String[] args) {
        TeacherDao proxyInstance = (TeacherDao) new ProxyFactory(new TeacherDao()).getProxyInstance();
        System.out.println(proxyInstance.teach());
    }
}
